import request from '@/utils/request'

export default {
    //获取轮播图分页列表
    getCurrentSettingShow() {
        return request({
            url: `/sys/rate/getRate`,
            method: 'get'
        })
    },
    
    submitSettingShow(sysRateBeans) {
        return request({
            url: `/sys/rate/setRate`,
            method: 'post',
            data: sysRateBeans
        })
    },

    getCurrentAboutUsShow() {
        return request({
            url: `/briefIntroduction/select`,
            method: 'post'
        })
    },
    
    updateAboutUsShow(brief) {
        return request({
            url: `/briefIntroduction/update`,
            method: 'post',
            data: brief
        })
    },
    
    getLogListPage(selectLogData) {

        return request({
            url: `/log/getAllLog/${selectLogData.page}/${selectLogData.limit}`,
            method: 'post',
            data: selectLogData.systemLogBean
        })
    },
    
    getEmplNamePage(page,limit) {
        return request({
            url: `/admin/acl/user/${page}/${limit}`,
            method: 'get',
        
        })
    },

    updateFund(key) {
        return request({
            url: `/appcode/fund`,
            method: 'get',
            params: { key }
        })
    },

    updateCertification(key) {
        return request({
            url: `/appcode/certification`,
            method: 'get',
            params: { key }
        })
    },

    updateGoldFunction(key) {
        return request({
            url: `/appcode/gold`,
            method: 'get',
            params: { key }
        })
    },

    updatePort(port) {
        return request({
            url: `/member/updateHostAndPort`,
            method: 'get',
            params: { port }
        })
    },
}